﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>工长详情页面 - {site.name}</title>
<meta content="" name="keywords" />
<meta content="" name="description" />
<link href="<%templateskin%>/css/common.css" rel="stylesheet" type="text/css" />
<link href="<%templateskin%>/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" charset="utf-8" src="{config.webpath}scripts/jquery/jquery-1.11.2.min.js"></script>
<script type="text/javascript" charset="utf-8" src="<%templateskin%>/js/common.js"></script>
</head>

<body>
<!--Header-->
<%template src="_header.html"%>
<!--/Header--> 

<!--工长基本信息-->

<div class="worker-info">
  <div class="worker-info-inner">
    <div class="worker-info-box clearfix">
      <div class="worker-tximg fl"><img src="{model.user.avatar}"></div>
      <ul class="worker-info-ct fl">
        <li class="first-li"><span class="worker-info-name">{model.user.nick_name}</span></li>
        <li><span>籍&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;贯：</span><strong>{model.user.address}人</strong><span>&nbsp;&nbsp;&nbsp;从业年限：</span><strong><%=get_foreman_work({model.fore_work})%></strong></li>
        <li><span>入驻时间：</span><strong>{model.fore_settime}</strong><span>&nbsp;&nbsp;接单区域：</span><strong>{model.fore_areas}</strong></li>
      </ul>
      <div class="worker-info-grade fl">
        <ul>
          <li class="clearfix"><a href="#">
            <div class="fl"> 综合评级：<strong class="big-s">{model.fore_level}</strong>&nbsp;星&nbsp;</div>
            <div class="li2-bg fl"><span class="star{model.fore_level} active"></span></div>
            <div class="grade-div fl">（{model.fore_level}星级工长）</div>
            </a></li>
          <li class="grade-line"></li>
          <%if(model.fore_renzheng==1)%>
          <li class="grade-bao clearfix"><span>实</span><strong>该工长已通过锤子工长网实名认证可放心选择</strong></li>
          <%/if%>
          <li class="grade-bao clearfix"><span>工</span><strong>该工长工地质量，锤子评定为<%=get_fore_grade({model.fore_grade})%></strong></li>
          <li class="grade-bao clearfix"><span>保</span><strong><%=get_fore_safe({model.fore_safe})%></strong></li>
        </ul>
      </div>
      <div class="worker-info-btn fl">
      <a href="javascript:ForemanApply('price','我要预约该工长','{model.id}','{model.user.nick_name}');" class="js_order_add yy">预约</a> 
      <a href="javascript:alert('弹出QQ客服联系我！');" class="sc">联系</a></div>
    </div>
  </div>
</div>

<!--工长基本信息结束-->
<div class="section clearfix">
  <div class="section clearfix"> 
    
    <!--左边-->
    <div class="list-left">
      <div class="sidebar-box my_place place_has">
      <div class="site-d">
            <h1>工地案例</h1>
      </div>
          <a href="<%linkurl("msite_list",53,{model.user_id})%>" title="" class="seemore" target="_blank">更多&gt;&gt;</a>
        <div class="focus-list">
          <ul>
            <%set DataTable redNews=get_article_list("cases",53,6, "view_channel_cases.user_id="+model.user_id+" and view_channel_cases.status=0 and img_url<>''","click desc")%>
            <%foreach(DataRow dr in redNews.Rows)%>
            <li> <a title="{dr[title]}" href="<%linkurl("mnews_show",{dr[id]})%>"> <b><img src="{dr[img_url]}" /></b> <span>{dr[title]}</span> </a> </li>
            <%/foreach%>
          </ul>
        </div>
        <div class="line10"></div>
        
        <div class="site-d">
            <h1>最新预约</h1>
      </div>
        <ul class="rank-list"  style="padding: 20px;">
          <%set DataTable applyList=get_apply_list(5,"foreman_id="+model.id,"apply_addtime desc")%>
          <%loop hotdr applyList%>
          <%if(hotdr__loop__id==1)%>
          <li class="active">
            <%else%>
          <li>
            <%/if%>
            <span>
            <%datetostr({hotdr[apply_addtime]},MM-dd)%>
            </span> <i class="num"><%=hotdr__loop__id%></i><a><%=GetName({hotdr[apply_name]})%> - {hotdr[apply_summary]}</a> </li>
          <%/loop%>
        </ul>
      </div>
    </div>
    <!--/左边--> 
    
    <!--右边-->
    <div class="list-auto-right">
      <div class="wrap_r"> 
      
        <!--最新签单-->
        <div class="site-b mt10 my_place place_has">
          <div class="site-d">
            <h1>最新签单</h1>
          </div>
          <a href="<%linkurl("msign_list",54,{model.user_id})%>" title="" class="seemore" target="_blank">更多&gt;&gt;</a>
          <div class="my_place_cnt">
          
          <%set DataTable signList=get_article_list("cases",54,4, "view_channel_cases.user_id="+model.user_id+" and view_channel_cases.status=0 and img_url<>''","click desc")%>
            <%foreach(DataRow dr in signList.Rows)%>
            <div class="place_list Qd">
            <a target="_blank" href="<%linkurl("mnews_show",{dr[id]})%>" class="place_list-pic"> <img src="{dr[img_url]}" alt="{dr[title]}" title="{dr[title]}"></a>
              <div style="border: none"> <a style="color: #9797a6" target="_blank" href="<%linkurl("mnews_show",{dr[id]})%>" class="place_list-pic">{dr[title]}</a> </div>
            </div>
          <%/foreach%>
            
          </div>
        </div>
        
        <!--最新报价-->
        <div class="site-b mt10 my_place place_has">
          <div class="site-d">
            <h1> 我的最新报价</h1>
          </div>
            <a href='<%linkurl("mprice_list",52,{model.user_id})%>' title="" class="seemore">更多&gt;&gt;</a>
          <div class="my_place_cnt" style="margin-bottom: 5px; margin-top: 10px;">
            <ul class="bj_title">
              <li>业主</li>
              <li class="chang">小区</li>
              <li>面积</li>
              <li>装修方式</li>
              <li>报价</li>
              <li class="sj">时间</li>
              <li>查看详情</li>
            </ul>
            
            <%set DataTable sign1List=get_article_list("cases",52,4, "view_channel_cases.user_id="+model.user_id+" and view_channel_cases.status=0","click desc")%>
            <%foreach(DataRow dr in sign1List.Rows)%>
            <ul class="bj_list">
              <li>{dr[area_layout]}</li>
              <li class="chang">{dr[area_name]}</li>
              <li>{dr[area_size]} ㎡</li>
              <li>{dr[area_way]}</li>
              <li>{dr[area_price]}元 </li>
              <li class="sj"><%datetostr({dr[add_time]},yyyy-MM-dd)%></li> 
              <li><a href="<%linkurl("mnews_show",{dr[id]})%>" target="_blank">查看详情</a></li>
            </ul>
            <%/foreach%>
            
          </div>
        </div>
        
        
        <!--最新报价-->
        <div class="site-b mt10 my_place place_has">
          <div class="site-d">
            <h1>工长简介</h1>
          </div>
          <!--<a href="#" title="" class="seemore">更多&gt;&gt;</a>-->
          <div class="my_place_cnt" style="margin-bottom: 5px; margin-top: 10px;">
          <div class="content">
          <p>
          {model.fore_info}</p>
          </div>
          </div>
        </div>
        
        
      </div>
    </div>
    <!--/右边--> 
  </div>
</div>

<!--Footer-->
<%template src="_footer.html"%>
<!--/Footer-->
</body>
</html>